package edu.ucsc.gameAI.conditions;

import edu.ucsc.gameAI.ICondition;
import pacman.game.Constants;
import pacman.game.Game;
import pacman.game.Constants.GHOST;

public class CurrentGhostNodeIndex implements ICondition{
	
	GHOST gghost;
	int index;

	public CurrentGhostNodeIndex(Constants.GHOST ghost, int i)
	{
		gghost = ghost;
		index = i;
		
	}

	public boolean test(Game game) {
		return game.getGhostCurrentNodeIndex(gghost) == index;
	}

}
